﻿#include <QCoreApplication>

#include "television.h"
#include "remotecontrol.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Television* tv = new Television();

    tv->add("tv1");
    tv->add("tv2");
    tv->add("tv3");

    WIterator* it = tv->iterator();

    while (it->hasNext()) {
        it->next();
        it->current();
    }

    return a.exec();
}
